import React, { Suspense } from 'react'
import './App.css'
import Router from './router'
import WaitLoading from './components/waitLoading'
import store from './store'
import { Provider } from 'react-redux'
type Props = {}

const App = (props: Props) => {
  return (
    <Provider store={store}>
      <Suspense fallback={<WaitLoading></WaitLoading>}>
        <Router></Router>
      </Suspense>
    </Provider>

  )
}

export default App